module.exports = {
	siteMetadata: {
		title: 'Gatsby Default Starter'
	},
	plugins: [
		'gatsby-plugin-react-helmet',
		"gatsby-plugin-no-sourcemaps",
		{
			resolve: `gatsby-source-filesystem`,
			options: {
				name: `images`,
				path: `${__dirname}/src/images`
			}
		},
		'gatsby-transformer-sharp',
		'gatsby-plugin-sharp',
		{
			resolve: `gatsby-plugin-manifest`,
			options: {
				name: 'gatsby-starter-default',
				short_name: 'starter',
				start_url: '/',
				background_color: '#663399',
				theme_color: '#663399',
				display: 'minimal-ui',
				icon: 'src/images/gatsby-icon.png' // This path is relative to the root of the site.
			}
		},
		// this (optional) plugin enables Progressive Web App + Offline functionality
		// To learn more, visit: https://gatsby.app/offline
		// 'gatsby-plugin-offline',
		//less插件
		{
			resolve: `gatsby-plugin-less`,
			options: {
				sourceMaps: false,
				javascriptEnabled: true,
				modifyVars: {
					'primary-color': '#1DA57A',
					'link-color': '#1DA57A',
					'border-radius-base': '2px'
				}

				//postCssPlugins: [somePostCssPlugin()],
			}
		},
		//antd插件
		{
			resolve: 'gatsby-plugin-antd',
			options: {
				style: true
			}
		},
		//使用babel-plugin-import
		{
			resolve: 'gatsby-plugin-import',
			options: {
				libraryName: 'antd',
				style: 'css', // or 'css'
				sourceMaps: false
			}
		}
	]
};
